package com.dark.cms.base.dao;

import org.apache.ibatis.session.ExecutorType;
import org.apache.ibatis.session.SqlSessionFactory;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.dao.support.PersistenceExceptionTranslator;
import org.springframework.stereotype.Service;

/**
 * 数据传输对象
 * Created by Devil on 2015/1/24.
 */
@Service("dao")
public class MyBatisDao extends SqlSessionTemplate{

    public  MyBatisDao(SqlSessionFactory sqlSessionFactory){
        super(sqlSessionFactory);
    }
    public MyBatisDao(SqlSessionFactory sqlSessionFactory, ExecutorType executorType) {
        super(sqlSessionFactory, executorType);
    }

    public MyBatisDao(SqlSessionFactory sqlSessionFactory, ExecutorType executorType, PersistenceExceptionTranslator exceptionTranslator) {
        super(sqlSessionFactory, executorType, exceptionTranslator);
    }
}
